<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>目标伪类选择器</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #a1,#a2,#a3{
            display: none;
        }
        #a1:target, #a2:target, #a3:target{
            display: block;
        }
    </style>
</head>
<body>
    <div>
        <a href="#a1">aaaa</a>
        <div id="a1">Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio obcaecati quas ullam reprehenderit voluptate libero ipsa commodi. Est minima consequuntur adipisci quidem, optio exercitationem ullam aliquam doloremque labore quaerat delectus.</div>
    </div>
    <div>
        <a href="#a2">bbbb</a>
        <div id="a2">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dolor ea odio earum eos dignissimos esse ad quos culpa eveniet quia quam consectetur laboriosam tenetur pariatur quidem facere, vitae dolores eius!</div>
    </div>
    <div>
        <a href="#a3">cccc</a>
        <div id="a3">Lorem ipsum dolor sit amet consectetur, adipisicing elit. Earum facilis fuga quisquam perferendis. Quis error beatae, veniam, similique, exercitationem itaque sit iure sint a impedit repellendus tempora voluptas. Libero, eligendi!</div>
    </div>
</body>
</html>